package com.wish.group05.system.api;

import com.wish.group05.common.core.constant.ServiceNameConstants;
import com.wish.group05.common.core.web.domain.AjaxResult;
import com.wish.group05.system.api.factory.RemoteDictDataFallbackFactory;
import com.wish.group05.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteDictDataService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteDictDataFallbackFactory.class)
public interface RemoteDictDataService {

    /**
     * 获取字典数据表集合
     * @param
     * @return
     */
    @GetMapping("dict/data/getDictDataList")
    public AjaxResult getDictDataList(@RequestParam(value = "dictType")String dictType);
}
